﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcEditlayoutDemo.Controllers
{
    public class CommonController : Controller
    {
        //
        // GET: /Common/

        public ActionResult Index()
        {
            return View();
        }

        [OutputCache]
        public JsonResult ItemsSource(string key, string name)
        {
            JsonResult result = new JsonResult() { JsonRequestBehavior=JsonRequestBehavior.AllowGet };
            result.Data = Enumerable.Range(0, 100).Select(m => new {id=m,text="text"+m });
            return result;
        }
    }
}
